package com.otherTest.designpattern.creationalpattern.builder;


import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Description: 工程部指导车间生产bike
 * @author: conceit
 * @Date: 2018/9/1 0001 18:07
 */
@Data
public class EngineeringDepartment {

    BikeService bikeService;

    public EngineeringDepartment(BikeService bikeService) {
        this.bikeService = bikeService;
    }

    //指导装车
    public void buildBike(){
        bikeService.buildColor();
        bikeService.buildFrame();
        bikeService.buildTyre();
    }
}
